package com.jackiechan.hello.day03;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 将当前系统时间以"yyyy-MM-dd HH:mm:ss"格式输出
 * @author Xiloer
 *
 */
public class Test02 {
    public static void main(String[] args) {
        SimpleDateFormat sdf = new SimpleDateFormat();
        sdf.applyPattern("yyyy-MM-dd HH:mm:ss");
        Date now = new Date();
        System.out.println(sdf.format(now));
    }

    public void show(){

    }

    public String show(int i){
        return null;
    }
}


class DD extends Test02{

    @Override
    public void show() {
        super.show();
    }

}

abstract class A{
    public static void main(String[] args) {
        try {
            System.out.println(1/1);
            int arr[][] = {{1,2,3},{4,5,6,7},{9}};
            boolean found = false;
            for(int i=0;i<arr.length && !found;i++) {
                for(int j=0;j<arr[i].length;j++){
                    if(arr[i][j] == 5) {
                        System.out.println("i=" + i + ",j=" + j);
                        found = true;
                        break;
                    }
                }
            }
            return;
        }catch (Exception e){
            System.out.println("catch");
        }finally {
            System.out.println("finally");
        }
    }
}
